package com.chj.comp.service.demo2.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.*;
import com.chj.comp.service.demo2.entity.Demo2AnjukeXian;
import com.chj.comp.service.demo2.service.IDemo2AnjukeXianService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cuihui
 * @since 2022-02-15
 */
@RestController
@RequestMapping("/demo2AnjukeXian")
@Api(tags = "Demo2AnjukeXian接口")
public class Demo2AnjukeXianController {

    @Autowired
    private IDemo2AnjukeXianService demo2AnjukeXianService;

    /**
     * 通过ID查询
     *
     * @param id ID
     * @return R<Demo2AnjukeXian>
     */
    @GetMapping("/getDemo2AnjukeXianDetail/{id}")
    @ApiOperation(value = "demo2详情")
    public Demo2AnjukeXian getDemo2AnjukeXianDetail(@ApiParam(value = "id", required = true) @PathVariable Integer id) {
        return demo2AnjukeXianService.getById(id);
    }

}
